<?php


/**
 * APP接口
 */


//系统参数
$router->post('sys/index','SysController@getIndex');
/**
 * 视频接口
 */
$router->group(['prefix'=>'video'], function () use ($router) {
    $router->post('index','VideoController@getIndex');
    $router->post('one','VideoController@getOne');
//    $router->post('history/add','VideoController@setHistory');
    $router->post('history/del','VideoController@setHistoryDel');
    $router->post('zan/add','VideoController@setZanAdd');
    $router->post('zan/del','VideoController@setZanDel');
});
/**
 * 库接口
 */
$router->group(['prefix'=>'stock'], function () use ($router) {
    $router->post('index','StockController@getIndex');
    $router->post('one','StockController@getOne');
    $router->post('history/del','StockController@setHistoryDel');
});
/**
 * 用户接口
 */
$router->group(['prefix'=>'user'], function () use ($router) {
//验证码
    $router->post('user/yzm/send','UserController@sendYzm');
});